package com.correo.server.run;

import java.sql.SQLException;

import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;

import com.correo.controladores.server.ControllerServer;
import com.correo.exceptions.server.RefreshException;
import com.correo.modelo.server.ModelServer;
import com.correo.vista.server.windows.AdministracionCorreo;

public class RunClass {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		try {
            UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
            ModelServer				model = new ModelServer();
            AdministracionCorreo 	correoServer = new AdministracionCorreo(model);
            new ControllerServer(model,correoServer);
    		correoServer.setVisible(true);
        } catch (UnsupportedLookAndFeelException e) {	            
        } catch (ClassNotFoundException e) {            
        } catch (InstantiationException e) {
            
        } catch (IllegalAccessException e) {
            
        } catch (RefreshException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (SQLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}catch (Exception e) {
			e.printStackTrace();
		}	    		
		
	}

}
